package day04.homework;

public class textDemo04 {
    public static void main(String[] args) {

//        for (int a =0; a<=4;a++){
//            System.out.println("行动是成功的阶梯");
//        }
//
//        for (int a = 1;a<=9;a++){
//            System.out.println(a+"*9="+a*9);
//        }
//        System.out.println("-------------");
//        for (int b = 1;b<=9;b+=2){
//            System.out.println(b+"*9="+b*9);
//        }
//        System.out.println("-------------");
//        for (int c = 9; c>=1;c--){
//            System.out.println(c+"*9="+c*9);
//        }
//        System.out.println("-------------");
//        int x = 0;
//        for (int num =1;num<=100;num++){
//            x = x+num;
//        }
//        System.out.println("x="+x);
        for (int a=1;a<=5;a++){
            System.out.println("这是第"+a+"次运行！");
        }
        System.out.println("---------------------");
        for (int num = 1; num <=9;num++){
            System.out.println(num+"*9="+num*9);
        }
        System.out.println("---------------------");
        for (int a =1; a<=9;a+=2){
            System.out.println(a+"*9="+a*9);
        }
        System.out.println("---------------------");
        for (int b =9;b>=1;b--){
            System.out.println(b+"*9="+b*9);
        }
        System.out.println("-------------------");
        int num=0;
        for (int c = 1; c<=100;c++){
            num= num+c;

        }
        System.out.println("num="+num);

    }
}
